package com.yserp.md.service;
import com.yserp.md.entity.TMdRoutingHeadEntity;
import com.yserp.md.entity.TMdRoutingItemEntity;

import java.util.List;
import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;

public interface TMdRoutingHeadServiceI extends CommonService{
	
 	public <T> void delete(T entity);
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(TMdRoutingHeadEntity tMdRoutingHead,
                        List<TMdRoutingItemEntity> tMdRoutingItemList) ;
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(TMdRoutingHeadEntity tMdRoutingHead,
                           List<TMdRoutingItemEntity> tMdRoutingItemList);
	public void delMain(TMdRoutingHeadEntity tMdRoutingHead);
	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(TMdRoutingHeadEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(TMdRoutingHeadEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(TMdRoutingHeadEntity t);
}
